package com.example.medical_delivery_system.service;

import com.example.medical_delivery_system.entity.User;

/**
 * BelongsProject: medical_delivery_system
 * Author: Kotoba Trily
 * CreateTime: 2022/12/25 17:35
 * Description:
 * Version: 1.0
 */

public interface DeliveryLoginService {
    /**
     * 登录
     * @param userName
     * @param password
     * @return
     */
    String login(String userName, String password);

    /**
     * 获取用户信息
     *
     * @param loginUserId
     * @return
     */
    User getUserDetailById(Long loginUserId);

    /**
     * 修改当前登录用户的密码
     *
     * @param loginUserId
     * @param originalPassword
     * @param newPassword
     * @return
     */
    Boolean updatePassword(Long loginUserId, String originalPassword, String newPassword);

    /**
     * 修改当前登录用户的名称信息
     *
     * @param loginUserId
     * @param loginUserName
     * @param nickName
     * @return
     */
    Boolean updateName(Long loginUserId, String loginUserName, String nickName);

    /**
     * 登出接口
     * @param UserId
     * @return
     */
    Boolean logout(Long UserId);
}